/* 完全保持头部原始样式 */
:root {
    --primary: #6b4f4a;
    --secondary: #3e2723;
    --paper: #f5f0e5;
    --border: #9e8d89;
}

body {
    font-family: '华文楷体', '楷体', serif;
    background: var(--paper) url('data:image/svg+xml,<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M20,50 Q40,25 60,50 Q80,75 80,50" fill="none" stroke="%239C8D89" stroke-width="1" opacity="0.1"/></svg>');
    color: var(--secondary);
    line-height: 1.8;
    font-size: 24px;
    margin: 0;
}

#topnav {
    background: rgba(237, 225, 199, 0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1rem 0;
    border-bottom: 2px solid var(--primary);
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    color: var(--secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: var(--primary);
    color: var(--paper);
}

.user-menu {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.logout-btn {
    background: #e74c3c;
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* 仅修改结果区域 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}
.dynasty-order {
    font-size: 1.3em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid var(--border);
}
.result-title {
    text-align: center;
    font-size: 2.2rem;
    color: var(--primary);
    letter-spacing: 0.5em;
    margin: 2rem 0 3rem;
    position: relative;
}

.result-title::after {
    content: "";
    display: block;
    width: 280px;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 10%,
        var(--primary) 50%,
        transparent 90%
    );
    margin: 1.8rem auto;
}

.result-list {
    padding: 0;
    display: grid;
    gap: 2.5rem;
}

.result-item {
    background: rgba(255,255,255,0.97);
    padding: 2.2rem;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    border-left: 5px solid var(--primary);
    transition: transform 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
}

.detail-line {
    margin: 1.2rem 0;
    padding-left: 2.2rem;
    position: relative;
    line-height: 1.8;
}

.detail-line::before {
    content: "▎";
    color: var(--primary);
    position: absolute;
    left: 0.8rem;
    font-size: 1.4em;
    transform: rotate(15deg);
}

#locate {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: fixed;
    right: 3%;
    top: 50%;  /* 改为视口垂直居中 */
    transform: translateY(-50%);  /* 精确垂直居中 */
    background: rgba(237, 225, 199, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;  /* 子元素垂直水平居中 */
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(107, 79, 74, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

/* 新增链接容器样式 */
.locate-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;  /* 图标与文字间距 */
    text-decoration: none;
    width: 100%;
    height: 100%;
    justify-content: center;  /* 内容居中 */
}

#locate img {
    width: 40px;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
    transition: transform 0.3s ease;
}

#locate .topup {
    font-size: 18px;
    color: var(--primary);
    font-weight: 500;
    margin: 0;  /* 移除默认外边距 */
    line-height: 1;  /* 确保文字行高正常 */
}

@media (max-width: 768px) {
    .result-title {
        font-size: 1.8rem;
        letter-spacing: 0.3em;
    }

    .result-item {
        padding: 1.8rem;
        margin: 0 1rem;
    }

    .detail-line {
        padding-left: 1.8rem;
    }
    #locate {
        width: 60px;
        height: 60px;
        right: 3%;
        top: 20%;
    }

    #locate img {
        width: 30px;
    }

    #locate .topup {
        font-size: 14px;
    }
}